package com.ly.po;

import java.util.Date;
import java.util.Objects;

public class ExamCoursePO {
    private String courseCode;

    private Date startTime;

    private Date endTime;

    private Integer state;

    private String college;

    private String major;

    private String classCode;

    private String className;

    private String semester;

    private String courseName;

    public ExamCoursePO() {
    }

    public ExamCoursePO(String courseCode, Date startTime, Date endTime, Integer state, String college, String major, String classCode, String className, String semester, String courseName) {
        this.courseCode = courseCode;
        this.startTime = startTime;
        this.endTime = endTime;
        this.state = state;
        this.college = college;
        this.major = major;
        this.classCode = classCode;
        this.className = className;
        this.semester = semester;
        this.courseName = courseName;
    }

    @Override
    public String toString() {
        return "ExamCoursePO{" +
                "courseCode='" + courseCode + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", state=" + state +
                ", college='" + college + '\'' +
                ", major='" + major + '\'' +
                ", classCode='" + classCode + '\'' +
                ", className='" + className + '\'' +
                ", semester='" + semester + '\'' +
                ", courseName='" + courseName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ExamCoursePO that = (ExamCoursePO) o;
        return Objects.equals(courseCode, that.courseCode) && Objects.equals(startTime, that.startTime) && Objects.equals(endTime, that.endTime) && Objects.equals(state, that.state) && Objects.equals(college, that.college) && Objects.equals(major, that.major) && Objects.equals(classCode, that.classCode) && Objects.equals(className, that.className) && Objects.equals(semester, that.semester) && Objects.equals(courseName, that.courseName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(courseCode, startTime, endTime, state, college, major, classCode, className, semester, courseName);
    }

    public String getCourseCode() {
        return courseCode;
    }

    public void setCourseCode(String courseCode) {
        this.courseCode = courseCode;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getSemester() {
        return semester;
    }

    public void setSemester(String semester) {
        this.semester = semester;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }
}
